@(species: String)
@title = @{
    species match {
        case "cs" => "Cucumber"
        case "cm" => "Cmoschata"
    }
}
@config.main(title + " Browse") {

    <div class="body-box">
        <div class="page-box">

            @config.subTitle(title + " Browse")

            <div class="main-body">
                components.table(species)
            </div>
        </div>
    </div>

    <script>

            $(function () {


                $("#table").bootstrapTable({
                    method: "post",
                    url: "@routes.BrowseController.getAllGene(species)",
                    sidePagination: "server",
                    contentType: "application/x-www-form-urlencoded"
                })


            })


            function GetGeneId(value, row) {
                if ("@species" === "cs") {
                    return `<a href="/capdb/browse/csInfoPage?id=${row.id}" target="_blank">${value}</a>`
                } else {
                    return `<a href="/capdb/browse/cmInfoPage?id=${row.id}" target="_blank">${value}</a>`
                }
            }

    </script>

}